var Api = "http://192.168.5.13:9000/";
var Apo = new Vue({
      el: "#app",   
	  created() {
	  	this.List();	
	  },
      data: function () {
		return{
		tableData: [],
		list: null,
		pageNum: 1,
		pageSize: 10,
		total: 0,
		};
      },
      computed: {
      
      },
	  methods:{

		//  查看列表
		List() {
		  let that = this;
		  var par = {
		    pageNum: that.pageNum,
		    pageSize: that.pageSize,
		  };
		  axios({
		    method: "post",
		    url: Api + "adminEquip/FindSecretList",
		    params: par,
		  }).then(function (res) {
		    console.log(res);
		    if (res.status == "200") {
		      that.list = res.data.list;
		      that.total = res.data.totalRow;
		    }
		    if (res.status == "300") {
		      that.$message({
		        type: "error",
		        message: res.data.message,
		      });
		    }
		  });
		},
		
		add(){
			window.location.href = "secretAdd.html";
		}
			
		
		
	  }
})
 